<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%--jsp脚本之JSP Script--%>
    <%
        /*相当于在service方法内部写了一套逻辑代码*/
        for (int i = 0; i < 10; i++) {
            System.out.println(i);// 打印10以内的数字
        }
        // 往session当中存储一个打印的值
        //HttpSession session1 = request.getSession();//Variable 'session' is already defined in the scope
        session.setAttribute("n", 50);
    %>
</body>
</html>
